<?php
class Accountmanager_Model_Accessleveldecision implements Accountmanager_Model_Mainable {
    
    private $excepted_access_level = 1;
    
    public function main(array $variables = null) {
        if(!isset($_SESSION['access_level']) || ($_SESSION['access_level'] < $this->excepted_access_level)){
            session_destroy();
            header("Location: ".SITE_ROOT."login.html");
        }
    }

}

